<template>
    <div>
      <van-tabbar v-model="active" route>
        <van-tabbar-item icon="wap-home" replace to="/home">首页</van-tabbar-item>
        <van-tabbar-item icon="records">分类</van-tabbar-item>
        <van-tabbar-item icon="shopping-cart-o">购物车</van-tabbar-item>
        <van-tabbar-item icon="contact" replace to="/profile">我的</van-tabbar-item>
      </van-tabbar>
    </div>
</template>

<script>
import Vue from 'vue'
import { Tabbar, TabbarItem } from 'vant'
Vue.use(Tabbar).use(TabbarItem)
export default {
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style scoped>

</style>
